package com.ruige.service.controller;

import com.ruige.service.pojo.Result;
import com.ruige.service.service.RuigeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/service")
public class ServiceController {
    @Autowired
    private RuigeService ruigeService;

    /**
     * 查询所有服务
     * @return
     */
    @GetMapping("/find")
    public Result findAll() {
        Result result = ruigeService.findAll();
        return result;
    }
}

